<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css" >
</head>
<body>
<form id="salary_addjustment_add" name="salary_addjustment_add" method="post" action="salaryAdjustment!add" onsubmit="return checkForm();">
  <table width="800" border="1" align="center" cellpadding="0">
    <tr>
      <th colspan="3" scope="col">薪资调整</th>
    </tr>
    <tr>
      <td width="100">员工编号</td>
      <td width="500">
        <s:property value="additionalSalaryVO.staffVO.staffID"/>
        <input type="hidden" id="staffID" name="staffID" value='<s:property value="additionalSalaryVO.staffVO.staffID"/>'/>
      </td>
      <td width="200">&nbsp;</td>
    </tr>
    <tr>
      <td>姓名</td>
      <td><s:property value="additionalSalaryVO.staffVO.staffName"/></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>部门</td>
      <td>
        <s:property value="additionalSalaryVO.staffVO.department.departmentName"/>
        <input type="hidden" id="departmentID" name="departmentID" value='<s:property value="additionalSalaryVO.staffVO.department.departmentID"/>'/>
      </td>
      <td>所属部门</td>
    </tr>
    <tr>
      <td>职位</td>
      <td>
        <s:property value="additionalSalaryVO.staffVO.position.positionName"/>
        <input type="hidden" id="positionID" name="positionID" value='<s:property value="additionalSalaryVO.staffVO.position.positionID"/>'/>
	  </td>
      <td>所属职位</td>
    </tr>
    <tr>
      <td>当前附加薪资</td>
      <td><s:property value="additionalSalaryVO.additionalSalaryAmount"/></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>调整额度</td>
      <td><label>
        <input name="salaryAmount" type="text" id="salaryAmount" size="50" maxlength="50" />
      </label></td>
      <td>在上面金额基础上进行加减</td>
    </tr>
    <tr>
      <td colspan="3"><label>
        <input name="submit" type="submit" id="submit" value="调整" />
        <input name="reset" type="reset" id="reset" value="重置" />
        &nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);">返回上一页</a>
      </label></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
	function checkForm(){
		if($("salaryAdjustment").text == ""){
			alert("请输入调整金额！");
			$("salaryAdjustment").focus();
			return false;
		}
		return true;
	}
	function $(value){
		return document.getElementById(value);
	}
</script>
</body>
</html>
